<?php
	
	// Functions and Class
	require_once 'include/header.inc.php';
	
	// TPL path
	define('TPL', STYLE_PATH.'message.html');

	// Template
	$tmp = new Template(TPL);

    // Navigations
	$tmp->setContent("CATEGORY",$tmp->category("category","library"));
	$tmp->setContent("FOOTMENU",$tmp->category("foot"));

	
	$id = (isset($_GET['id'])) ? $_GET['id'] : "systemerror";
	
	$file = "include/lang/".$PROJECT['lang']."/messages/".$id.".txt";
		
	if (!file_exists($file))
    	$file = "include/lang/".$PROJECT['lang']."/messages/systemerror.txt";
    
    $content = nl2br(fread(fopen($file,"r"),filesize($file)));
	
	$tmp->setContent(array("content" => $content)); 
	
	// Set all page labels
	$tmp->setLabels();

	// Display all					  
	echo $tmp->vorlage;
?>